package com.example.ShoppingManagementSystem.service;

import com.example.ShoppingManagementSystem.entity.CartItem;
import com.example.ShoppingManagementSystem.entity.Customer;
import com.example.ShoppingManagementSystem.entity.PurchaseHistory;

import java.util.List;

public interface CustomerService {
    Customer loginCustomer(String username, String password);

    Customer registerCustomer(String username, String password, String PhoneNumber, String email);

    void updatePassword(int customerId, String newPassword);

    boolean resetPassword(String username, String email);

    void addToCart(int customerId, int productId, int quantity);

    void removeFromCart(int customerId, int productId);

    void updateCartItemQuantity(int customerId, int productId, int newQuantity);

    List<PurchaseHistory> getAllPurchaseHistory(int customerId);

    void pay(int customerId, int productId, int quantity);

    List<CartItem> checkout(int customerId);
}
